from ultralytics.data.annotator import auto_annotate

auto_annotate(
    data=r"C:\Users\kang_\Desktop\d",
    det_model=r"C:\Users\kang_\Downloads\best (1).pt",
    sam_model=r"C:\Users\kang_\Desktop\workspace\pig_pose\sam_b.pt",
    device="cpu",
    output_dir=r"C:\Users\kang_\Desktop\workspace\pig_pose\test\autolabel",
    conf=0.5,
)
